const state = () => ({
    isMobile: false,
    pageTitle: ''
})

const getters = {
    isMobile(state) {
        return state.isMobile
    },
    pageTitle(state) {
        return state.pageTitle
    }
}

const mutations = {
    setMobile(state, value) {
        state.isMobile = value
    },
    pageTitle(state, title) {
        state.pageTitle = title
    }
}

export default {
    namespaced: true,
    state,
    getters,
    mutations
}
